package com.qhy.rabbitmq;

import com.qhy.rabbitmq.service.ReceiveService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * @author qiuhongyu
 * @date 2021/2/23 16:38
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ApplicationContext ac = SpringApplication.run(Application.class, args);
        ReceiveService sendService = (ReceiveService) ac.getBean("receiveService");
        sendService.receive();
    }
}
